package com.jml.netty.手写注册中心.entity;

import io.netty.channel.ChannelHandlerContext;

import java.io.Serializable;


public class AddresEntity implements Serializable {
    private String addres;
    // 生产的连接
    private ChannelHandlerContext ctx;


    public AddresEntity(String addres, ChannelHandlerContext ctx) {
        this.addres = addres;
        this.ctx = ctx;
    }

    public String getAddres() {
        return addres;
    }

    public void setAddres(String addres) {
        this.addres = addres;
    }

    public ChannelHandlerContext getCtx() {
        return ctx;
    }

    public void setCtx(ChannelHandlerContext ctx) {
        this.ctx = ctx;
    }

    @Override
    public String toString() {
        return "AddresEntity{" +
                "addres='" + addres + '\'' +
                '}';
    }
}
